import Cookies from "js-cookie";
const SupportKey='supportKey';

export let ua = navigator.userAgent.toLowerCase();
//android终端
export  let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;  
//ios终端!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
export const isiOS = (ua.indexOf("iphone") != -1)
export const SupportUrl='https://coding.net/?utm_source=macrozheng&utm_medium=banner&utm_campaign=march2019';
export function getSupport() {
  return Cookies.get(SupportKey)
}

export function setSupport(isSupport) {
  return Cookies.set(SupportKey, isSupport,{ expires: 3 })
}
